﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace ShanghaiMetroAPP.Helper
{
    /// <summary>
    /// 虚基类，表示一个形状
    /// </summary>
    public abstract class BaseShape
    {
        /// <summary>
        /// 这个形状是否包含点a?
        /// </summary>
        /// <param name="a"></param>
        /// <returns></returns>
        public abstract bool IsInclude(Vector2 a);
        /// <summary>
        /// 这个形状是否包含点p?
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public abstract bool IsInculde(Point p);
        /// <summary>
        /// 这个形状是否完全包含形状t
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="t"></param>
        /// <returns></returns>
        public abstract bool IsInculde<T>(T t) where T : BaseShape;
    }
}
